#define _CRT_SECURE_NO_WARNINGS 1

#include<stdio.h>
#include<string.h>

int main()
{
	char arr1[] = "abcdetyh";
	char arr2[] = "abcdefgh";
	int ret = strncmp(arr1, arr2, 8);
	printf("%d\n", ret);
	if (ret < 0)
	{
		printf("arr1<arr2");
	}
	else if (ret > 0)
	{
		printf("arr1>arr2");
	}
	else
		printf("arr1 = arr2");
	return 0;
}